#pragma once

#include "../uml/Element.h"
#include "../umlmodel_global.h"
#include <QtCore>

namespace uml {

/// <summary>
/// PartialElement
/// </summary>
class UMLMODEL_EXPORT PartialElement {
public:
    PartialElement();
    PartialElement(Element* onwer);

public:
    virtual void fromJson(const QJsonObject& json, QStringList& errorList);
    virtual void toJson(QJsonObject& json);

    Element* ownerElement();
    void setOnwerElement(Element* value);

private:
    Element* ownerElement_ = nullptr;
};
} // namespace uml
